<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<link rel="stylesheet" href="css/bjw.css"/>
	<title>Tutorial: HelloWorld</title>
</head>

<span jwcid="$content$">
<span jwcid="@Shell" stylesheet="asset:stylesheet" title="Beer Judge Web"/>
	<body jwcid="@Body">
		<h1>Tilføj ny bruger</h1>
		<p/>
		<form jwcid="form@Form" success="listener:doSubmit" clientValidationEnabled="false">
		<table width="33%" class="form" cellpadding="2" cellspacing="0">
			<tr>
				<th><label jwcid="@FieldLabel" field="component:userName">Bruger navn:</label></th>
				<td><input jwcid="userName@TextField" value="ognl:user.userName"
					size="30" validators="validators:required,maxLength=20,minLength=3" displayName="Bruger navn"/></td>
			</tr>
			<tr>
				<th><label jwcid="@FieldLabel" field="component:firstName">Fornavn:</label></th>
				<td><input jwcid="firstName@TextField"
					value="ognl:user.firstName" size="30" validators="validators:required,maxLength=30" displayName="Fornavn"/></td>
			</tr>
			<tr>
				<th><label jwcid="@FieldLabel" field="component:lastName">Efternavn</label></th>
				<td><input jwcid="lastName@TextField" value="ognl:user.lastName"
					size="30" validators="validators:required,maxLength=30" displayName="Efternavn"/></td>
			</tr>
			<tr>
				<th><label jwcid="@FieldLabel" field="component:addressLine1">Adresse linie 1:</label></th>
				<td><input jwcid="addressLine1@TextField"
					value="ognl:user.addressLine1" size="30"  validators="validators:required,maxLength=30" displayName="Addresse linie 1"/></td>
			</tr>
			<tr>
				<th><label jwcid="@FieldLabel" field="component:addressLine2">Adresse linie 2:</label></th>
				<td><input jwcid="addressLine2@TextField"
					value="ognl:user.addressLine2" size="30" validators="validators:maxLength=30" displayName="Addresse linie 2"/></td>
			</tr>
			<tr>
				<th><label jwcid="@FieldLabel" field="component:zipCode">Postnummer:</label></th>
				<td><input jwcid="zipCode@TextField" value="ognl:user.zipCode"
					size="4"  validators="validators:required,minLength=4,maxLength=4" displayName="Postnummer"/></td>
			</tr>
			<tr>
				<th><label jwcid="@FieldLabel" field="component:city">By:</label></th>
				<td><input jwcid="city@TextField" value="ognl:user.city"
					size="30" validators="validators:required,maxLength=30" displayName="By"/></td>
			</tr>
			<tr>
				<th><label jwcid="@FieldLabel" field="component:emailAddress">Email:</label></th>
				<td><input jwcid="emailAddress@TextField"
					value="ognl:user.emailAddress" size="30"  validators="validators:required,maxLength=30, email" displayName="Email"/></td>
			</tr>
		</table>
                   <input jwcid="@Submit" value="Opret bruger" class="submitButton"/>
<!--                   
                           action="listener:doSubmit"
                           async="false" updateComponents="form" 
  -->                           
 		</form>
</body>
</span>
</span>
</html>